<?php
use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/im',
    'namespace' => 'Frieza\\Modules\\Im\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/index', 'MsgSendController@index');
    $router->get('/create', 'MsgSendController@create');
    $router->get('/view/{id}', 'MsgSendController@create');
    $router->get('/user_nick', 'MsgSendController@getUserNick');

    $router->post('/save', 'MsgSendController@save');
    $router->post('/cancel', 'MsgSendController@cancel');
    $router->post('/resend', 'MsgSendController@resend');
    $router->post('/reply', 'MsgSendController@reply');

    $router->get('/msg_list', 'MsgSendController@msgList');
    $router->get('/getMoreMsg', 'MsgSendController@getMoreMsg');
    //私信图审核
    $router->get('/imgCheckList', 'ImCheckController@imgCheckList');
    $router->post('/imgCheck', 'ImCheckController@imgCheck');
});